package com.example.shopsystem.service.Impl;

import com.example.shopsystem.entity.Order;
import com.example.shopsystem.entity.OrderDeail;
import com.example.shopsystem.entity.vo.OrderDetailVo;
import com.example.shopsystem.entity.vo.OrderVo;


import java.util.List;


public interface OrderService {
    void returnGoods(int orderId,int goodId);//退货
    void viewAllSuccessfulOrders();//显示所有状态正常的订单
    List<OrderDeail>  queryOrderDeail(String orderId);//显示
    Boolean insertOrder(Order order);//增加订单
    Boolean updateOrder(OrderVo OrderVo);//修改订单
    Boolean updateOrderState(Order order);//修改订单状态
    List<OrderDetailVo> ViewSales(String beginTime, String dieTime);//查看所有订单
    List<OrderDetailVo> ViewUserSales(String userId);//查询用户订单
}
